package com.kpmg.datalake.common.vo;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户登录信息
 *
 * @author Tim.qian [tx.qian@kpmg.com]
 * @since Created on timqian on 2018-09-11 10:15:23
 */
public class UserLoginDTO implements Serializable {

  private static final long serialVersionUID = -5568223088522205593L;

  public UserLoginDTO() {

  }

  public UserLoginDTO(String userName, String loginIp) {
    this.userName = userName;
    this.loginIp = loginIp;
  }

  /**
   * 登陆名
   */
  private String userName;

  /**
   * 登陆IP
   */
  private String loginIp;

  /**
   * 连续登陆失败次数
   */
  private int failedNumber;

  /**
   * 最近一次登录失败的时间
   */
  private Date latestFailedTime;

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getLoginIp() {
    return loginIp;
  }

  public void setLoginIp(String loginIp) {
    this.loginIp = loginIp;
  }

  public int getFailedNumber() {
    return failedNumber;
  }

  public void setFailedNumber(int failedNumber) {
    this.failedNumber = failedNumber;
  }

  public Date getLatestFailedTime() {
    return latestFailedTime;
  }

  public void setLatestFailedTime(Date latestFailedTime) {
    this.latestFailedTime = latestFailedTime;
  }

  public void increaseFailedTime() {
    this.failedNumber++;
  }

}
